<template>
  <div class="feature">
    <a href="#">
      <img src="~assets/img/category/banner.jpg" alt="" @load="imageLoad">
    </a>
  </div>
</template>

<script>
export default {
  name: "feature_view",
  methods: {
    // 图片加载好时，向父组件发送事件
    imageLoad() {
      this.$emit('imageLoad');
    }
  }
}
</script>

<style scoped>
  .feature img {
    width: 100%;
    height: auto;
  }
</style>